package com.system.api.service;

import com.alibaba.fastjson.JSONArray;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "zuul-gateway")
public interface DataService {
    @GetMapping("/data-service/getYmtInfo")
    JSONArray getYmtInfo();

    @GetMapping("/data-service/getByStartEnd")
    JSONArray getByStartEnd(@RequestParam(value = "start") String start,
                            @RequestParam(value = "end") String end,
                            @RequestParam(value = "cateName") String cateName);

    @GetMapping("/data-service/getOriginByStartEnd")
    JSONArray getOriginByStartEnd(@RequestParam(value = "start") String start,
                                  @RequestParam(value = "end") String end,
                                  @RequestParam(value = "cateName") String cateName,
                                  @RequestParam(value = "origin") String origin);

    @GetMapping("/data-service/getAllOrigin")
    JSONArray getAllOrigin(@RequestParam(value = "marketDate") String marketDate,
                           @RequestParam(value = "cateName") String cateName);

    @GetMapping("/data-service/getSiChuanJiangXi")
    JSONArray getSiChuanJiangXi(@RequestParam(value = "marketDate") String marketDate,
                                @RequestParam(value = "cateName") String cateName,
                                @RequestParam(value = "province") String province);

    @GetMapping("/data-service/getByDateCate")
    JSONArray getByDateCate(@RequestParam(value = "date") String marketDate,
                                @RequestParam(value = "cate") String cate);

    @GetMapping("/data-service/getBySpecies")
    JSONArray getBySpecies(@RequestParam(value = "marketDate") String marketDate,
                           @RequestParam(value = "species") String species);

    @GetMapping("/data-service/getHotByBuyer")
    JSONArray getHotByBuyer(@RequestParam(value = "marketDate") String marketDate);

    @GetMapping("/data-service/getHotBySeller")
    JSONArray getHotBySeller(@RequestParam(value = "marketDate") String marketDate);

    @GetMapping("/data-service/getNonewInfo")
    JSONArray getNonewInfo();

    @GetMapping("/data-service/getNjwInfo")
    JSONArray getNjwInfo();

    @GetMapping("/data-service/getAgriNyywInfo")
    JSONArray getAgriNyywInfo();

    @GetMapping("/data-service/getAgriNyywArtical")
    JSONArray getAgriNyywArtical(@RequestParam(value = "title") String title);

    @GetMapping("/data-service/getByDateOriginSpecies")
    JSONArray getByDateOriginSpecies(@RequestParam(value = "marketDate") String marketDate, @RequestParam(value = "origin") String origin, @RequestParam(value = "species") String species);

    @GetMapping("/data-service/getByDateOriginCate")
    JSONArray getByDateOriginCate(@RequestParam(value = "marketDate") String marketDate, @RequestParam(value = "origin") String origin, @RequestParam(value = "cate") String cate);

    @GetMapping("/data-service/getAgriNyywInfoByProvince")
    JSONArray getAgriNyywInfoByProvince(@RequestParam(value = "province") String province);

    @GetMapping("/data-service/getChnAgriNews")
    JSONArray getChnAgriNews(@RequestParam(value = "today") String today);

    @GetMapping("/data-service/getChnAgriArticle")
    JSONArray getChnAgriArticle(@RequestParam(value = "title") String title);

    @GetMapping("/data-service/getZcfgInfo")
    JSONArray getZcfgInfo();

    @GetMapping("/data-service/getZcfgArticle")
    JSONArray getZcfgArticle(@RequestParam(value = "title") String title);

    @GetMapping("/data-service/getJingDongProducts")
    JSONArray getJingDongProducts();

    @GetMapping("/data-service/getJingDongOrderChoose")
    JSONArray getJingDongOrderChoose();

    @GetMapping("/data-service/getJingDongComment")
    JSONArray getJingDongComment(@RequestParam(value = "orderChoose") String orderChoose);

    @GetMapping("/data-service/getJingDongFrequency")
    JSONArray getJingDongFrequency(@RequestParam(value = "variety") String variety);

    @GetMapping("/data-service/getOrderByMarketDate")
    JSONArray getOrderByMarketDate();

    @GetMapping("/data-service/getMaxPriceOrigin")
    JSONArray getMaxPriceOrigin(@RequestParam(value = "marketDate") String marketDate,@RequestParam(value = "cate") String cate);

    @GetMapping("/data-service/getMinPriceOrigin")
    JSONArray getMinPriceOrigin(@RequestParam(value = "marketDate") String marketDate,@RequestParam(value = "cate") String cate);

    @GetMapping("/data-service/getNywProductsInfoByCateDate")
    JSONArray getNywProductsInfoByCateDate(@RequestParam(value = "cate") String cate,@RequestParam(value = "date") String date);

    @GetMapping("/data-service/getCommentSentimentByText")
    JSONArray getCommentSentimentByText(@RequestParam(value = "text") String text);
}


